﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 依赖注入
{
    internal class TestServiceImpl : ITestService,IDisposable
    {
        public string Name {  get; set; }

        public void Dispose()
        {
            SayHi();
        }

        public void SayHi()
        {
            Console.WriteLine($"Hi,我是{Name}");
        }
    }
}
